838da85fc2143aa0d681f0fcdeaf22a8718f1dfd,plugins/org.eclipse.xtext.ui.common/src/org/eclipse/xtext/ui/common/editor/codecompletion/DefaultContentAssistProcessor.java,DefaultContentAssistProcessor,collectCompletionProposalList,#List#List#IDocument#LeafNode#String#number#,317

Before Change



				ParserRule parserRule = GrammarUtil.containingParserRule(assignment);

				EObject model = ((CompositeNode) currentLeafNode.eContainer()).getElement();
				
				Method method = findMethod(proposalProvider.getClass(), "complete"
						+ firstLetterCapitalized(parserRule.getName())
						+ firstLetterCapitalized(assignment.getFeature()), Assignment.class, null==model.getClass() ? EObject.class : model.getClass(),
						String.class, document.getClass(), int.class);

				Collection<? extends ICompletionProposal> assignmentProposalList = invokeMethod(method,
						proposalProvider, assignment, model, prefix, document, offset);

				if (null != assignmentProposalList) {
					completionProposalList.addAll(assignmentProposalList);

After Change



				ParserRule parserRule = GrammarUtil.containingParserRule(assignment);

				EObject model = null==((CompositeNode) currentLeafNode.eContainer()).getElement() ? 
						currentLeafNode.eContainer()
						: ((CompositeNode) currentLeafNode.eContainer()).getElement();
				
				Method method = findMethod(proposalProvider.getClass(), "complete"
						+ firstLetterCapitalized(parserRule.getName())
						+ firstLetterCapitalized(assignment.getFeature()), Assignment.class, model.getClass(),String.class, document.getClass(), int.class);

				Collection<? extends ICompletionProposal> assignmentProposalList = null==method ? 
						null :
						invokeMethod(method,proposalProvider, assignment, model, prefix, document, offset);

				if (null != assignmentProposalList) {
					completionProposalList.addAll(assignmentProposalList);